package com.accp.vehiclecare.dao.zbdao;

import com.accp.vehiclecare.pojo.Employee;
import com.accp.vehiclecare.vo.zbvo.StaffVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {

    /**
     * 删除指定的用户
     * @param eid
     * @return
     */
    int deleteByPrimaryKey(Integer eid);

    int insert(Employee record);

    int insertSelective(Employee record);

    /**
     * 查询指定的员工信息
     * @param eid
     * @return
     */
    Employee selectByPrimaryKey(Integer eid);

    /**
     * 查询全部员工
     * @return
     */
    List<StaffVo> SelectAll();

    /**
     * 模糊查询员工
     * @param eno
     * @return
     */
    List<StaffVo> SelectLike(@Param("eno")String eno);
    /**
     * 修改指定员工
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Employee record);

    /**
     * 将职工修改成离职状态
     * @param eid
     * @return
     */
    int updateDimission(@Param("eid")Integer eid);
    /**
     * 将职工恢复成在职状态
     * @param eid
     * @return
     */
    int updateWork(@Param("eid")Integer eid);
}